<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>首页|蜗牛宠物领养平台</title>

    <link rel="shortcut icon" th:href="@{/asserts/images/favicon.ico}" type="image/x-icon"/>
    <!-- Bootstrap的css -->
    <link rel="stylesheet" th:href="@{/asserts/bootstrap3.4.1/css/bootstrap.min.css}">
    <!-- jQuery本地-->
    <script th:src="@{/asserts/js/jQuery-3.6.0.js}"></script>
    <!-- 加载本地js -->
    <script th:src="@{/asserts/bootstrap3.4.1/js/bootstrap.min.js}"></script>
    <!-- 加载common.css -->
    <link rel="stylesheet" th:href="@{/asserts/css/common.css}" />
    <!-- 加载页头页尾css -->
    <link rel="stylesheet" th:href="@{/asserts/css/top.css}"/>
    <link rel="stylesheet" th:href="@{/asserts/css/foot.css}"/>
    <!-- 加载页头页尾js -->
    <script th:src="@{/asserts/js/top.js}"></script>

    <!-- 本页面js -->
    <script th:src="@{/asserts/js/index.js}"></script>

</head>
<body>
<!-- 页头 -->
<nav th:replace="nav::headerBar"></nav>
<!-- 首页轮播图 -->
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
    <!-- Indicators -->
    <ol class="carousel-indicators">
        <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
        <li data-target="#carousel-example-generic" data-slide-to="1"></li>
        <li data-target="#carousel-example-generic" data-slide-to="2"></li>
    </ol>

    <!-- Wrapper for slides -->
    <div class="carousel-inner" role="listbox">
        <div class="item active" th:each="p,i : ${pageList}" th:if="${i.index}==0">
            <img th:src="${p.url}"/>
            <div class="carousel-caption">
                <h3>猫狗 是你的
                    <span>朋友</span>！&nbsp;&nbsp;猫狗是你的
                    <span>家人</span> !</h3>
                <p> 全面的猫狗护理指南，让您的宠物感受到您的爱</p>
            </div>
        </div>
        <div class="item" th:each="p,i : ${pageList}" th:if="${i.index}!=0">
            <img th:src="${p.url}"/>
            <div class="carousel-caption">
                <h3>猫狗 是你的
                    <span>朋友</span>！&nbsp;&nbsp;猫狗是你的
                    <span>家人</span> !</h3>
                <p> 全面的猫狗护理指南，让您的宠物感受到您的爱</p>
            </div>
        </div>
    </div>

    <!-- Controls -->
    <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
        <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
        <span class="sr-only">Previous</span>
    </a>
    <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
        <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
        <span class="sr-only">Next</span>
    </a>
</div>
<!-- 页尾 -->
<footer th:replace="nav::footBar"></footer>

</body>
</html>